<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of dbresult_dummy
 *
 * @author Dian Cahyono <dc.life.hazard@gmail.com, dian.cahyono.sujiadi@gmail.com>
 */
class dbresult_dummy {
    
    var $array_result = array();
    var $object;
    
    function new_object($object = ""){
        if(is_object($object))
            $this->object = $object;
        else
            $this->object = new stdClass();
    }
    
    function assoc($key, $value){
        $this->object->$key = $value;
    }
    
    function insert_object(){
        $this->array_result[] = $this->object;
    }
    
    function num_rows(){
        return count($this->array_result);
    }
    
    function result(){
        return $this->array_result;
    }
    
}

?>
